Add safe-competition-trading-agent plugin#446
Open
maixuancanh wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plugin Submission
Plugin name: safe-competition-trading-agent
Version: 1.0.0
Type: new-plugin
Checklist
plugin-store lintpasses locally with no errorsokx-,official-,plugin-store-)nameanddescriptionWhat does this plugin do?
safe-competition-trading-agentis a competition-aware Agentic Wallet trading strategy skill. It uses onchainOS as the primary source for wallet status, competition detail, user registration status, token discovery, swap quote, unsigned transaction preparation, and guarded execution.The skill plans safer competition trades, checks whether a trade is likely eligible for the Agentic Wallet Trading Competition, selects safer real-token candidates, validates workflow order with
agent-workflow-composer, runsagent-risk-firewallbefore execution, and only allows live execution after explicit user confirmation.Which onchainos commands does it use?
The skill plans and instructs the agent to use these onchainOS commands:
onchainos wallet statusonchainos competition list --status 0onchainos competition detail --activity-id <activityId>onchainos competition user-status --activity-id <activityId> --evm-wallet <evmWallet> --sol-wallet <solWallet>onchainos token hot-tokens --chain <chain>or equivalent onchainOS token discovery commandsonchainos swap quote --from <tokenIn> --to <selectedCandidate> --readable-amount <amount> --chain <chain>onchainos swap execute --from <tokenIn> --to <selectedCandidate> --readable-amount <amount> --chain <chain> --wallet <walletAddress>only after firewall allow/warn and explicit user confirmationIt also uses supporting plugin CLIs:
agent-workflow-composer plan --input <composerRequest.json> --format jsonagent-risk-firewall check --input <firewallInput.json> --format jsonSecurity Considerations
The CLI itself does not sign, broadcast, move funds, access private keys, export wallets, or handle seed phrases. It defaults to dry-run.
Live execution is gated by competition context, quote/transaction context,
agent-risk-firewall, and explicit user confirmation. The skill rejects unsafe orderings, never uses--force, stops on ablockverdict, and requires explicit confirmation forwarnverdicts. Internal competition IDs are kept in tool context and must not be shown in user-facing messages.Testing
Tested locally: